import Vue from "vue";
import ElementUI from "element-ui";
import moment from "moment";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App.vue";
import api from "./api/api.js";

Vue.use(ElementUI);
Vue.prototype.$moment = moment;

Vue.prototype.$api = api;

// Vue.prototype.$url = process.env.NODE_ENV === 'development' ? 'http://wangxiao.test/api' :'http://i.zhongchenjiaoyu.com/api'
Vue.prototype.$url =
  process.env.NODE_ENV === "development"
    ? "http://i.zhongchenjiaoyu.com/api"
    : "http://i.zhongchenjiaoyu.com/api";

Vue.config.productionTip = false;
import router from "./router";
import store from "./store";
import vueEsign from "vue-esign";
Vue.use(vueEsign);
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";

Vue.use(VXETable);
// import Swiper from "swiper";
// import "swiper/css/swiper.min.css";
// 全局挂载
// Vue.use(Swiper)
// import './assets/css/theme.scss'
export const bus = new Vue();
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
